package com.example.productviewservicefeign.service;

import com.example.productviewservicefeign.dao.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductService {
    @Autowired
    private ProductClientFeign clientFeign;
    public List<Product> listProduct(){
        return clientFeign.listProducts();
    }
}
